package cn.yuxiaoyuan.system.mapper;

import cn.yuxiaoyuan.base.mapper.BaseMapper;
import cn.yuxiaoyuan.system.domain.Employee;
import cn.yuxiaoyuan.system.domain.Menu;
import cn.yuxiaoyuan.system.query.EmployeeQuery;
import cn.yuxiaoyuan.system.query.MenuQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {
    List<Employee> queryPage(EmployeeQuery employeeQuery);

    Integer queryPageCount(EmployeeQuery employeeQuery);

    void deleteRoleByEmpId(Long id);
    void addRoleByEmpId(@Param("id") Long id,@Param("roleIds") List<Long> roleIds);
}
